//用于管理员显示班级详细信息的表单
var classesDetailForm = Ext.create('Ext.form.Panel', {
    bodyPadding: 10,
    border: false,
    defaults: {
    	width:'100%',
    	margin:'20 0 0 0'
    },
    items: [{
        xtype: 'textfield',
        labelWidth: 70,
        allowBlank: false,
        fieldLabel: '名称',
        emptyText: '限制字数',
        itemId: 'name',
        margin:'0 0 0 0'
    }, {
        xtype: 'displayfield',
        labelWidth: 70,
        fieldLabel: '创建人',
        itemId: 'creater'
    }, {
        xtype: 'displayfield',
        fieldLabel: '期数:',
        labelWidth: 70,
        itemId: 'stage'
    }, {
        xtype: 'displayfield',
        fieldLabel: '创建时间:',
        labelWidth: 70,
        itemId: 'createDate'
    }, {
        fieldLabel: '描述信息',
        allowBlank: false,
        labelWidth: 70,
        xtype: 'textareafield',
        height: '60%',
        itemId: 'describe',
        cls: 'x-form-valid',
        emptyText: '填写描述信息'
    }]
});

//显示班级的开班流程设计的表单
var classesProcessForm = Ext.create("Ext.form.Panel", {
    border: false,
    bodyPadding: '10 20',
    defaults: {
        anchor: '98%',
        msgTarget: 'side',
        allowBlank: false
    },
    items: [Ext.create('processNoCheckBoxTimeFieldset', {
        itemId: 'enterTime',
        title: '班级报名时间安排'
    }), Ext.create('processNoCheckBoxNumFieldset', {
        itemId: 'memberCount',
        title: '班级人数'
    }), {
        anchor: '100%',
        layout: 'column', // 默认定义组件内部元素为布局为列布局方式
        border: false,
        items: [{
            columnWidth: .5, // 该列占用的宽度，标识为50％
            border: false,
            items: [{
                xtype: 'displayfield',
                fieldLabel: '计划负责主任:',
                labelWidth: 100,
                itemId: 'toDirector'
            }]
        },{
        	columnWidth: .5, // 该列占用的宽度，标识为50％
        	border: false,
            items: [{
                xtype: 'button',
                text: '选择',
                itemId: 'chooseCreaterButton',
                listeners: [{
                    click: function () {
                        classesChooseClassesCreaterGridStore.reload();
                        classesChooseClassesCreaterGridWin.show();
                    }
                }]
            }]
        }]
    }]
});
